﻿using System;
using System.Windows.Forms;
using System.Collections.Specialized;

namespace TFSRequestManager
{
    public partial class Notifications : Form
    {
        #region Properties

        public NameValueCollection NotificationMessages { get; set; }

        #endregion

        #region Constructor

        public Notifications()
        {
            InitializeComponent();
        }

        #endregion

        #region Event Handlers

        private void Notifications_Load(object sender, EventArgs e)
        {
            foreach (string key in NotificationMessages.AllKeys)
            {
                NotificatonsListView.Items.Add(new ListViewItem(new string[] { key, NotificationMessages[key] }));
            }
        }

        private void copyToClipboardToolStripMenuItem_Click(object sender, EventArgs e)
        {
            Utility.CopyNotificationsToClipboard(NotificationMessages);
        }

        #endregion
    }
}
